package cn.theten52.demo.patterns.design.behavior.mediation.update3;

/**
 * 具体协作者：发布通知时会同步更新其他对象的Colleague类型￼
 *
 * @author wangjin
 * @date 2021/4/3
 */
public class Provider extends AbstractColleague<Integer> {

    @Override
    public Colleague<Integer> setData(Integer data) {
        this.data = data;
        getMediator().change(this);
        return this;
    }
}
